In [1]:
import pandas as pd
from sklearn.cluster import DBSCAN
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import io 
from sklearn.linear_model import LinearRegression
from sklearn import tree
In [2]:
df = pd.read_csv("employee_attrition_test2.csv")

df.head()

#romove from data all nulls values
df=df.dropna(axis=0,how='any')

df.describe()
Out[2]:
Unnamed: 0 Age DailyRate DistanceFromHome Education EmployeeCount EmployeeNumber EnvironmentSatisfaction HourlyRate JobInvolvement ... RelationshipSatisfaction StandardHours StockOptionLevel TotalWorkingYears TrainingTimesLastYear WorkLifeBalance YearsAtCompany YearsInCurrentRole YearsSinceLastPromotion YearsWithCurrManager
count 324.000000 324.000000 324.000000 324.000000 324.000000 324.0 324.000000 324.000000 324.000000 324.000000 ... 324.000000 324.0 324.000000 324.000000 324.000000 324.000000 324.000000 324.000000 324.000000 324.000000
mean 215.364198 38.117284 788.490741 9.583333 2.962963 1.0 1039.549383 2.827160 63.864198 2.808642 ... 2.817901 80.0 0.734568 12.129630 2.787037 2.777778 7.290123 4.373457 2.626543 4.450617
std 125.547408 8.918889 397.753883 8.121132 0.940252 0.0 596.590006 1.076517 19.376506 0.695264 ... 1.093544 0.0 0.785261 7.735679 1.264306 0.754758 6.432485 3.689082 3.786816 3.700142
min 1.000000 18.000000 106.000000 1.000000 1.000000 1.0 20.000000 1.000000 30.000000 1.000000 ... 1.000000 80.0 0.000000 0.000000 0.000000 1.000000 0.000000 0.000000 0.000000 0.000000
25% 107.750000 31.750000 458.750000 2.000000 2.000000 1.0 493.250000 2.000000 48.000000 2.000000 ... 2.000000 80.0 0.000000 7.000000 2.000000 2.000000 3.000000 2.000000 0.000000 2.000000
50% 215.500000 37.000000 773.000000 7.500000 3.000000 1.0 1037.500000 3.000000 63.000000 3.000000 ... 3.000000 80.0 1.000000 10.000000 3.000000 3.000000 5.500000 3.000000 1.000000 3.000000
75% 319.250000 44.000000 1127.750000 15.000000 4.000000 1.0 1573.250000 4.000000 79.000000 3.000000 ... 4.000000 80.0 1.000000 16.000000 3.000000 3.000000 9.000000 7.000000 4.000000 7.000000
max 439.000000 60.000000 1499.000000 29.000000 5.000000 1.0 2065.000000 4.000000 100.000000 4.000000 ... 4.000000 80.0 3.000000 40.000000 6.000000 4.000000 40.000000 18.000000 15.000000 17.000000

8 rows × 27 columns

In [3]:
print('''employee_attrition_test2 description:
1-BusinessTravel:consist of Travel rarely,Travel_Frequently,Non-Travel  
2-EducationField:consist of Life Sciences,Medical,Technical Degree,Marketing,Human Resources
3-gender: Male/Female
4-Age: employee age in years
5-JobRole: Sales Executive,Research Scientist ,Laboratory Technician,Manufacturing Director 
,Healthcare Representative ,Manager, Research Director,Human Resources, 
Sales Representative 
6-MaritalStatus:Married ,Single,Divorced '''
)
employee_attrition_test2 description:
1-BusinessTravel:consist of Travel rarely,Travel_Frequently,Non-Travel  
2-EducationField:consist of Life Sciences,Medical,Technical Degree,Marketing,Human Resources
3-gender: Male/Female
4-Age: employee age in years
5-JobRole: Sales Executive,Research Scientist ,Laboratory Technician,Manufacturing Director 
,Healthcare Representative ,Manager, Research Director,Human Resources, 
Sales Representative 
6-MaritalStatus:Married ,Single,Divorced 
In [4]:
"""**Anomaly** **Detection** **algorithem**

"""

# Extract two column for the algorithem and convert them to numpy array
dbscanData = df[['DailyRate','MonthlyIncome']]
dbscanData = dbscanData.values.astype('float32',copy=False)
dbscanData

# potting data before detecting outliears
plt.scatter(dbscanData[:,0], dbscanData[:,1])
plt.show()

# determining the epsilon and min samples per cluster
dbscan = DBSCAN(eps = 150, min_samples = 3)

# fit data to the model
pred = dbscan.fit_predict(dbscanData)
# determine outliers 
outliers = np.where(pred == -1)
values = dbscanData[outliers]
# potting data after detecting outliears
plt.scatter(dbscanData[:,0], dbscanData[:,1])
plt.scatter(values[:,0], values[:,1], color='r')
plt.show()
In [5]:
"""Visualization"""

#get for each Job Rule number of males that work over time and i used histogram to help me use many columns   

x=df.loc[(df["Gender"] == "Male")  &  (df["OverTime"]=='Yes')]
p=sns.histplot(y="JobRole",data=x)
p.set_title("Male Job Rule that work over time")
Out[5]:
Text(0.5, 1.0, 'Male Job Rule that work over time')
In [6]:
"""Visualization"""
#get martial status for female that work more than 7 years in company and i used pie chart to clarify percentage of martial status and i have less than 5 columns
y=df.loc[(df["Gender"] == "Female") & (df["TotalWorkingYears"] > 7) ]
arr1 = np.array(y[y["MaritalStatus"]=="Divorced"].count())
arr2 =np.array(y[y["MaritalStatus"]=="Married"].count())
arr3=np.array(y[y["MaritalStatus"]=="Single"].count())
res = []
for i in arr1:
    if i not in res:
        res.append(i)
for i in arr2:
    if i not in res:
        res.append(i)
for i in arr3:
    if i not in res:
        res.append(i)
        
plt.pie(res,labels=["Divorced","Married","Single"],autopct='%1.1f%%')
plt.title("Martial Status for Female")
plt.show()
In [7]:
"""Text **mining**"""

import nltk
import pandas as pd
import string
from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
from nltk.stem import PorterStemmer, WordNetLemmatizer

nltk.download('stopwords')
nltk.download('punkt')
nltk.download("vader_lexicon")
nltk.download('wordnet')
nltk.download('omw-1.4')
from nltk.sentiment import SentimentIntensityAnalyzer



#read data from file
with open('test.txt') as f:
    contents = f.readlines()
    sentences = list(contents)

    # Removing punctuation from data
    for sentence in sentences:
       sentence=sentence.lower()
       print("\nOriginal Sentence: " + sentence)
       result = sentence.translate(str.maketrans('', '', string.punctuation))
       print("After removing punctuation: " + result)

    # Tokenization
    tokenizedText = []
    for sentence in sentences:
       split_sentence_towords = word_tokenize(sentence)
       tokenizedText.append(split_sentence_towords)
    for sentence in tokenizedText:
       print(sentence)

    # Stop Words
    stopWords = set(stopwords.words('english'))
    for sentence in tokenizedText:
       print("\nSentence: ", sentence)
       for word in sentence:
           if word in stopWords:
               sentence.remove(word)
       print("After removing stop words: ", sentence)

    # Lemmatization
    word_lemm = WordNetLemmatizer()
    for sentence in tokenizedText:
       l_list = []
       print("\nWords: ", sentence)
       for word in sentence:
           l_list.append(word_lemm.lemmatize(word))
           print("After Lemmatization: ", l_list)

    # Stemming
    word_stemmer = PorterStemmer()
    for words in tokenizedText:
       s_list = []
       print("\n3Words: ", words)
       for word in words:
           s_list.append(word_stemmer.stem(word))
           print("After stemming: ", s_list)

    # Sentiment Analysis
    for sentence in sentences:
       s = SentimentIntensityAnalyzer()
       vs = s.polarity_scores(sentence)
       print(sentence, str(vs))
[nltk_data] Downloading package stopwords to
[nltk_data]     C:\Users\omara\AppData\Roaming\nltk_data...
[nltk_data]   Package stopwords is already up-to-date!
[nltk_data] Downloading package punkt to
[nltk_data]     C:\Users\omara\AppData\Roaming\nltk_data...
[nltk_data]   Package punkt is already up-to-date!
[nltk_data] Downloading package vader_lexicon to
[nltk_data]     C:\Users\omara\AppData\Roaming\nltk_data...
[nltk_data]   Package vader_lexicon is already up-to-date!
[nltk_data] Downloading package wordnet to
[nltk_data]     C:\Users\omara\AppData\Roaming\nltk_data...
[nltk_data]   Package wordnet is already up-to-date!
[nltk_data] Downloading package omw-1.4 to
[nltk_data]     C:\Users\omara\AppData\Roaming\nltk_data...
[nltk_data]   Package omw-1.4 is already up-to-date!
Original Sentence: a lot has happened to us all since 1987. thats the year the art of the deal

After removing punctuation: a lot has happened to us all since 1987 thats the year the art of the deal


Original Sentence: was published and became the bestselling business book of the decade,

After removing punctuation: was published and became the bestselling business book of the decade


Original Sentence: with over three million copies in print.

After removing punctuation: with over three million copies in print


Original Sentence: (business rule #1: if you do not  tell people about your success, they

After removing punctuation: business rule 1 if you do not  tell people about your success they


Original Sentence: probably wont know about it.)

After removing punctuation: probably wont know about it


Original Sentence: a few months ago, i picked up the art of the deal, skimmed a bit, and

After removing punctuation: a few months ago i picked up the art of the deal skimmed a bit and


Original Sentence: then read the first and last paragraphs. i realized that after seventeen years

After removing punctuation: then read the first and last paragraphs i realized that after seventeen years


Original Sentence: they still rang true. i could have written these words yesterday:

After removing punctuation: they still rang true i could have written these words yesterday


Original Sentence: first paragraph: i do not do it for the money. i have got enough, much more

After removing punctuation: first paragraph i do not do it for the money i have got enough much more


Original Sentence: than i will ever need. i do it to do it. deals are my art form. other people paint

After removing punctuation: than i will ever need i do it to do it deals are my art form other people paint


Original Sentence: beautifully on canvas or write wonderful poetry. i like making deals, preferably

After removing punctuation: beautifully on canvas or write wonderful poetry i like making deals preferably


Original Sentence: big deals. that is how i get my kicks.

After removing punctuation: big deals that is how i get my kicks


Original Sentence: last paragraph: do not get me wrong. i also plan to keep making deals, big

After removing punctuation: last paragraph do not get me wrong i also plan to keep making deals big


Original Sentence: deals, and right around the clock.

After removing punctuation: deals and right around the clock


Original Sentence: it is now 2004, i am still making deals around the clock, and i still dont

After removing punctuation: it is now 2004 i am still making deals around the clock and i still dont


Original Sentence: do it for the money.

After removing punctuation: do it for the money


Original Sentence: i do not think you should do it for the money, either. money is not an

After removing punctuation: i do not think you should do it for the money either money is not an


Original Sentence: end in itself, but it is sometimes the most effective way to help us realize

After removing punctuation: end in itself but it is sometimes the most effective way to help us realize


Original Sentence: our dreams. so if you have got big dreams and you’re looking for a way to

After removing punctuation: our dreams so if you have got big dreams and you’re looking for a way to


Original Sentence: make them happen, this book is for you. 
After removing punctuation: make them happen this book is for you 
['A', 'lot', 'has', 'happened', 'to', 'us', 'all', 'since', '1987', '.', 'Thats', 'the', 'year', 'The', 'Art', 'of', 'the', 'Deal']
['was', 'published', 'and', 'became', 'the', 'bestselling', 'business', 'book', 'of', 'the', 'decade', ',']
['with', 'over', 'three', 'million', 'copies', 'in', 'print', '.']
['(', 'Business', 'Rule', '#', '1', ':', 'If', 'you', 'do', 'not', 'tell', 'people', 'about', 'your', 'success', ',', 'they']
['probably', 'wont', 'know', 'about', 'it', '.', ')']
['A', 'few', 'months', 'ago', ',', 'I', 'picked', 'up', 'The', 'Art', 'of', 'the', 'Deal', ',', 'skimmed', 'a', 'bit', ',', 'and']
['then', 'read', 'the', 'first', 'and', 'last', 'paragraphs', '.', 'I', 'realized', 'that', 'after', 'seventeen', 'years']
['they', 'still', 'rang', 'true', '.', 'I', 'could', 'have', 'written', 'these', 'words', 'yesterday', ':']
['First', 'paragraph', ':', 'I', 'do', 'not', 'do', 'it', 'for', 'the', 'money', '.', 'I', 'have', 'got', 'enough', ',', 'much', 'more']
['than', 'I', 'will', 'ever', 'need', '.', 'I', 'do', 'it', 'to', 'do', 'it', '.', 'Deals', 'are', 'my', 'art', 'form', '.', 'Other', 'people', 'paint']
['beautifully', 'on', 'canvas', 'or', 'write', 'wonderful', 'poetry', '.', 'I', 'like', 'making', 'deals', ',', 'preferably']
['big', 'deals', '.', 'That', 'is', 'how', 'I', 'get', 'my', 'kicks', '.']
['Last', 'paragraph', ':', 'Do', 'not', 'get', 'me', 'wrong', '.', 'I', 'also', 'plan', 'to', 'keep', 'making', 'deals', ',', 'big']
['deals', ',', 'and', 'right', 'around', 'the', 'clock', '.']
['It', 'is', 'now', '2004', ',', 'I', 'am', 'still', 'making', 'deals', 'around', 'the', 'clock', ',', 'and', 'I', 'still', 'dont']
['do', 'it', 'for', 'the', 'money', '.']
['I', 'do', 'not', 'think', 'you', 'should', 'do', 'it', 'for', 'the', 'money', ',', 'either', '.', 'Money', 'is', 'not', 'an']
['end', 'in', 'itself', ',', 'but', 'it', 'is', 'sometimes', 'the', 'most', 'effective', 'way', 'to', 'help', 'us', 'realize']
['our', 'dreams', '.', 'So', 'if', 'you', 'have', 'got', 'big', 'dreams', 'and', 'you’re', 'looking', 'for', 'a', 'way', 'to']
['make', 'them', 'happen', ',', 'this', 'book', 'is', 'for', 'you', '.']

Sentence:  ['A', 'lot', 'has', 'happened', 'to', 'us', 'all', 'since', '1987', '.', 'Thats', 'the', 'year', 'The', 'Art', 'of', 'the', 'Deal']
After removing stop words:  ['A', 'lot', 'happened', 'us', 'since', '1987', '.', 'Thats', 'year', 'The', 'Art', 'the', 'Deal']

Sentence:  ['was', 'published', 'and', 'became', 'the', 'bestselling', 'business', 'book', 'of', 'the', 'decade', ',']
After removing stop words:  ['published', 'became', 'bestselling', 'business', 'book', 'the', 'decade', ',']

Sentence:  ['with', 'over', 'three', 'million', 'copies', 'in', 'print', '.']
After removing stop words:  ['over', 'three', 'million', 'copies', 'print', '.']

Sentence:  ['(', 'Business', 'Rule', '#', '1', ':', 'If', 'you', 'do', 'not', 'tell', 'people', 'about', 'your', 'success', ',', 'they']
After removing stop words:  ['(', 'Business', 'Rule', '#', '1', ':', 'If', 'do', 'tell', 'people', 'your', 'success', ',']

Sentence:  ['probably', 'wont', 'know', 'about', 'it', '.', ')']
After removing stop words:  ['probably', 'wont', 'know', 'it', '.', ')']

Sentence:  ['A', 'few', 'months', 'ago', ',', 'I', 'picked', 'up', 'The', 'Art', 'of', 'the', 'Deal', ',', 'skimmed', 'a', 'bit', ',', 'and']
After removing stop words:  ['A', 'months', 'ago', ',', 'I', 'picked', 'The', 'Art', 'the', 'Deal', ',', 'skimmed', 'bit', ',']

Sentence:  ['then', 'read', 'the', 'first', 'and', 'last', 'paragraphs', '.', 'I', 'realized', 'that', 'after', 'seventeen', 'years']
After removing stop words:  ['read', 'first', 'last', 'paragraphs', '.', 'I', 'realized', 'after', 'seventeen', 'years']

Sentence:  ['they', 'still', 'rang', 'true', '.', 'I', 'could', 'have', 'written', 'these', 'words', 'yesterday', ':']
After removing stop words:  ['still', 'rang', 'true', '.', 'I', 'could', 'written', 'words', 'yesterday', ':']

Sentence:  ['First', 'paragraph', ':', 'I', 'do', 'not', 'do', 'it', 'for', 'the', 'money', '.', 'I', 'have', 'got', 'enough', ',', 'much', 'more']
After removing stop words:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the', 'money', '.', 'I', 'got', 'enough', ',', 'much']

Sentence:  ['than', 'I', 'will', 'ever', 'need', '.', 'I', 'do', 'it', 'to', 'do', 'it', '.', 'Deals', 'are', 'my', 'art', 'form', '.', 'Other', 'people', 'paint']
After removing stop words:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals', 'my', 'art', 'form', '.', 'Other', 'people', 'paint']

Sentence:  ['beautifully', 'on', 'canvas', 'or', 'write', 'wonderful', 'poetry', '.', 'I', 'like', 'making', 'deals', ',', 'preferably']
After removing stop words:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry', '.', 'I', 'like', 'making', 'deals', ',', 'preferably']

Sentence:  ['big', 'deals', '.', 'That', 'is', 'how', 'I', 'get', 'my', 'kicks', '.']
After removing stop words:  ['big', 'deals', '.', 'That', 'how', 'I', 'get', 'kicks', '.']

Sentence:  ['Last', 'paragraph', ':', 'Do', 'not', 'get', 'me', 'wrong', '.', 'I', 'also', 'plan', 'to', 'keep', 'making', 'deals', ',', 'big']
After removing stop words:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I', 'also', 'plan', 'keep', 'making', 'deals', ',', 'big']

Sentence:  ['deals', ',', 'and', 'right', 'around', 'the', 'clock', '.']
After removing stop words:  ['deals', ',', 'right', 'around', 'clock', '.']

Sentence:  ['It', 'is', 'now', '2004', ',', 'I', 'am', 'still', 'making', 'deals', 'around', 'the', 'clock', ',', 'and', 'I', 'still', 'dont']
After removing stop words:  ['It', 'now', '2004', ',', 'I', 'still', 'making', 'deals', 'around', 'clock', ',', 'I', 'still', 'dont']

Sentence:  ['do', 'it', 'for', 'the', 'money', '.']
After removing stop words:  ['it', 'the', 'money', '.']

Sentence:  ['I', 'do', 'not', 'think', 'you', 'should', 'do', 'it', 'for', 'the', 'money', ',', 'either', '.', 'Money', 'is', 'not', 'an']
After removing stop words:  ['I', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either', '.', 'Money', 'not']

Sentence:  ['end', 'in', 'itself', ',', 'but', 'it', 'is', 'sometimes', 'the', 'most', 'effective', 'way', 'to', 'help', 'us', 'realize']
After removing stop words:  ['end', 'itself', ',', 'it', 'sometimes', 'most', 'effective', 'way', 'help', 'us', 'realize']

Sentence:  ['our', 'dreams', '.', 'So', 'if', 'you', 'have', 'got', 'big', 'dreams', 'and', 'you’re', 'looking', 'for', 'a', 'way', 'to']
After removing stop words:  ['dreams', '.', 'So', 'you', 'got', 'big', 'dreams', 'you’re', 'looking', 'a', 'way']

Sentence:  ['make', 'them', 'happen', ',', 'this', 'book', 'is', 'for', 'you', '.']
After removing stop words:  ['make', 'happen', ',', 'book', 'for', '.']

Words:  ['A', 'lot', 'happened', 'us', 'since', '1987', '.', 'Thats', 'year', 'The', 'Art', 'the', 'Deal']
After Lemmatization:  ['A']
After Lemmatization:  ['A', 'lot']
After Lemmatization:  ['A', 'lot', 'happened']
After Lemmatization:  ['A', 'lot', 'happened', 'u']
After Lemmatization:  ['A', 'lot', 'happened', 'u', 'since']
After Lemmatization:  ['A', 'lot', 'happened', 'u', 'since', '1987']
After Lemmatization:  ['A', 'lot', 'happened', 'u', 'since', '1987', '.']
After Lemmatization:  ['A', 'lot', 'happened', 'u', 'since', '1987', '.', 'Thats']
After Lemmatization:  ['A', 'lot', 'happened', 'u', 'since', '1987', '.', 'Thats', 'year']
After Lemmatization:  ['A', 'lot', 'happened', 'u', 'since', '1987', '.', 'Thats', 'year', 'The']
After Lemmatization:  ['A', 'lot', 'happened', 'u', 'since', '1987', '.', 'Thats', 'year', 'The', 'Art']
After Lemmatization:  ['A', 'lot', 'happened', 'u', 'since', '1987', '.', 'Thats', 'year', 'The', 'Art', 'the']
After Lemmatization:  ['A', 'lot', 'happened', 'u', 'since', '1987', '.', 'Thats', 'year', 'The', 'Art', 'the', 'Deal']

Words:  ['published', 'became', 'bestselling', 'business', 'book', 'the', 'decade', ',']
After Lemmatization:  ['published']
After Lemmatization:  ['published', 'became']
After Lemmatization:  ['published', 'became', 'bestselling']
After Lemmatization:  ['published', 'became', 'bestselling', 'business']
After Lemmatization:  ['published', 'became', 'bestselling', 'business', 'book']
After Lemmatization:  ['published', 'became', 'bestselling', 'business', 'book', 'the']
After Lemmatization:  ['published', 'became', 'bestselling', 'business', 'book', 'the', 'decade']
After Lemmatization:  ['published', 'became', 'bestselling', 'business', 'book', 'the', 'decade', ',']

Words:  ['over', 'three', 'million', 'copies', 'print', '.']
After Lemmatization:  ['over']
After Lemmatization:  ['over', 'three']
After Lemmatization:  ['over', 'three', 'million']
After Lemmatization:  ['over', 'three', 'million', 'copy']
After Lemmatization:  ['over', 'three', 'million', 'copy', 'print']
After Lemmatization:  ['over', 'three', 'million', 'copy', 'print', '.']

Words:  ['(', 'Business', 'Rule', '#', '1', ':', 'If', 'do', 'tell', 'people', 'your', 'success', ',']
After Lemmatization:  ['(']
After Lemmatization:  ['(', 'Business']
After Lemmatization:  ['(', 'Business', 'Rule']
After Lemmatization:  ['(', 'Business', 'Rule', '#']
After Lemmatization:  ['(', 'Business', 'Rule', '#', '1']
After Lemmatization:  ['(', 'Business', 'Rule', '#', '1', ':']
After Lemmatization:  ['(', 'Business', 'Rule', '#', '1', ':', 'If']
After Lemmatization:  ['(', 'Business', 'Rule', '#', '1', ':', 'If', 'do']
After Lemmatization:  ['(', 'Business', 'Rule', '#', '1', ':', 'If', 'do', 'tell']
After Lemmatization:  ['(', 'Business', 'Rule', '#', '1', ':', 'If', 'do', 'tell', 'people']
After Lemmatization:  ['(', 'Business', 'Rule', '#', '1', ':', 'If', 'do', 'tell', 'people', 'your']
After Lemmatization:  ['(', 'Business', 'Rule', '#', '1', ':', 'If', 'do', 'tell', 'people', 'your', 'success']
After Lemmatization:  ['(', 'Business', 'Rule', '#', '1', ':', 'If', 'do', 'tell', 'people', 'your', 'success', ',']

Words:  ['probably', 'wont', 'know', 'it', '.', ')']
After Lemmatization:  ['probably']
After Lemmatization:  ['probably', 'wont']
After Lemmatization:  ['probably', 'wont', 'know']
After Lemmatization:  ['probably', 'wont', 'know', 'it']
After Lemmatization:  ['probably', 'wont', 'know', 'it', '.']
After Lemmatization:  ['probably', 'wont', 'know', 'it', '.', ')']

Words:  ['A', 'months', 'ago', ',', 'I', 'picked', 'The', 'Art', 'the', 'Deal', ',', 'skimmed', 'bit', ',']
After Lemmatization:  ['A']
After Lemmatization:  ['A', 'month']
After Lemmatization:  ['A', 'month', 'ago']
After Lemmatization:  ['A', 'month', 'ago', ',']
After Lemmatization:  ['A', 'month', 'ago', ',', 'I']
After Lemmatization:  ['A', 'month', 'ago', ',', 'I', 'picked']
After Lemmatization:  ['A', 'month', 'ago', ',', 'I', 'picked', 'The']
After Lemmatization:  ['A', 'month', 'ago', ',', 'I', 'picked', 'The', 'Art']
After Lemmatization:  ['A', 'month', 'ago', ',', 'I', 'picked', 'The', 'Art', 'the']
After Lemmatization:  ['A', 'month', 'ago', ',', 'I', 'picked', 'The', 'Art', 'the', 'Deal']
After Lemmatization:  ['A', 'month', 'ago', ',', 'I', 'picked', 'The', 'Art', 'the', 'Deal', ',']
After Lemmatization:  ['A', 'month', 'ago', ',', 'I', 'picked', 'The', 'Art', 'the', 'Deal', ',', 'skimmed']
After Lemmatization:  ['A', 'month', 'ago', ',', 'I', 'picked', 'The', 'Art', 'the', 'Deal', ',', 'skimmed', 'bit']
After Lemmatization:  ['A', 'month', 'ago', ',', 'I', 'picked', 'The', 'Art', 'the', 'Deal', ',', 'skimmed', 'bit', ',']

Words:  ['read', 'first', 'last', 'paragraphs', '.', 'I', 'realized', 'after', 'seventeen', 'years']
After Lemmatization:  ['read']
After Lemmatization:  ['read', 'first']
After Lemmatization:  ['read', 'first', 'last']
After Lemmatization:  ['read', 'first', 'last', 'paragraph']
After Lemmatization:  ['read', 'first', 'last', 'paragraph', '.']
After Lemmatization:  ['read', 'first', 'last', 'paragraph', '.', 'I']
After Lemmatization:  ['read', 'first', 'last', 'paragraph', '.', 'I', 'realized']
After Lemmatization:  ['read', 'first', 'last', 'paragraph', '.', 'I', 'realized', 'after']
After Lemmatization:  ['read', 'first', 'last', 'paragraph', '.', 'I', 'realized', 'after', 'seventeen']
After Lemmatization:  ['read', 'first', 'last', 'paragraph', '.', 'I', 'realized', 'after', 'seventeen', 'year']

Words:  ['still', 'rang', 'true', '.', 'I', 'could', 'written', 'words', 'yesterday', ':']
After Lemmatization:  ['still']
After Lemmatization:  ['still', 'rang']
After Lemmatization:  ['still', 'rang', 'true']
After Lemmatization:  ['still', 'rang', 'true', '.']
After Lemmatization:  ['still', 'rang', 'true', '.', 'I']
After Lemmatization:  ['still', 'rang', 'true', '.', 'I', 'could']
After Lemmatization:  ['still', 'rang', 'true', '.', 'I', 'could', 'written']
After Lemmatization:  ['still', 'rang', 'true', '.', 'I', 'could', 'written', 'word']
After Lemmatization:  ['still', 'rang', 'true', '.', 'I', 'could', 'written', 'word', 'yesterday']
After Lemmatization:  ['still', 'rang', 'true', '.', 'I', 'could', 'written', 'word', 'yesterday', ':']

Words:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the', 'money', '.', 'I', 'got', 'enough', ',', 'much']
After Lemmatization:  ['First']
After Lemmatization:  ['First', 'paragraph']
After Lemmatization:  ['First', 'paragraph', ':']
After Lemmatization:  ['First', 'paragraph', ':', 'I']
After Lemmatization:  ['First', 'paragraph', ':', 'I', 'not']
After Lemmatization:  ['First', 'paragraph', ':', 'I', 'not', 'it']
After Lemmatization:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the']
After Lemmatization:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the', 'money']
After Lemmatization:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the', 'money', '.']
After Lemmatization:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the', 'money', '.', 'I']
After Lemmatization:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the', 'money', '.', 'I', 'got']
After Lemmatization:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the', 'money', '.', 'I', 'got', 'enough']
After Lemmatization:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the', 'money', '.', 'I', 'got', 'enough', ',']
After Lemmatization:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the', 'money', '.', 'I', 'got', 'enough', ',', 'much']

Words:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals', 'my', 'art', 'form', '.', 'Other', 'people', 'paint']
After Lemmatization:  ['I']
After Lemmatization:  ['I', 'ever']
After Lemmatization:  ['I', 'ever', 'need']
After Lemmatization:  ['I', 'ever', 'need', '.']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do', 'it']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals', 'my']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals', 'my', 'art']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals', 'my', 'art', 'form']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals', 'my', 'art', 'form', '.']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals', 'my', 'art', 'form', '.', 'Other']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals', 'my', 'art', 'form', '.', 'Other', 'people']
After Lemmatization:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals', 'my', 'art', 'form', '.', 'Other', 'people', 'paint']

Words:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry', '.', 'I', 'like', 'making', 'deals', ',', 'preferably']
After Lemmatization:  ['beautifully']
After Lemmatization:  ['beautifully', 'canvas']
After Lemmatization:  ['beautifully', 'canvas', 'write']
After Lemmatization:  ['beautifully', 'canvas', 'write', 'wonderful']
After Lemmatization:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry']
After Lemmatization:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry', '.']
After Lemmatization:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry', '.', 'I']
After Lemmatization:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry', '.', 'I', 'like']
After Lemmatization:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry', '.', 'I', 'like', 'making']
After Lemmatization:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry', '.', 'I', 'like', 'making', 'deal']
After Lemmatization:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry', '.', 'I', 'like', 'making', 'deal', ',']
After Lemmatization:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry', '.', 'I', 'like', 'making', 'deal', ',', 'preferably']

Words:  ['big', 'deals', '.', 'That', 'how', 'I', 'get', 'kicks', '.']
After Lemmatization:  ['big']
After Lemmatization:  ['big', 'deal']
After Lemmatization:  ['big', 'deal', '.']
After Lemmatization:  ['big', 'deal', '.', 'That']
After Lemmatization:  ['big', 'deal', '.', 'That', 'how']
After Lemmatization:  ['big', 'deal', '.', 'That', 'how', 'I']
After Lemmatization:  ['big', 'deal', '.', 'That', 'how', 'I', 'get']
After Lemmatization:  ['big', 'deal', '.', 'That', 'how', 'I', 'get', 'kick']
After Lemmatization:  ['big', 'deal', '.', 'That', 'how', 'I', 'get', 'kick', '.']

Words:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I', 'also', 'plan', 'keep', 'making', 'deals', ',', 'big']
After Lemmatization:  ['Last']
After Lemmatization:  ['Last', 'paragraph']
After Lemmatization:  ['Last', 'paragraph', ':']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I', 'also']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I', 'also', 'plan']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I', 'also', 'plan', 'keep']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I', 'also', 'plan', 'keep', 'making']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I', 'also', 'plan', 'keep', 'making', 'deal']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I', 'also', 'plan', 'keep', 'making', 'deal', ',']
After Lemmatization:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I', 'also', 'plan', 'keep', 'making', 'deal', ',', 'big']

Words:  ['deals', ',', 'right', 'around', 'clock', '.']
After Lemmatization:  ['deal']
After Lemmatization:  ['deal', ',']
After Lemmatization:  ['deal', ',', 'right']
After Lemmatization:  ['deal', ',', 'right', 'around']
After Lemmatization:  ['deal', ',', 'right', 'around', 'clock']
After Lemmatization:  ['deal', ',', 'right', 'around', 'clock', '.']

Words:  ['It', 'now', '2004', ',', 'I', 'still', 'making', 'deals', 'around', 'clock', ',', 'I', 'still', 'dont']
After Lemmatization:  ['It']
After Lemmatization:  ['It', 'now']
After Lemmatization:  ['It', 'now', '2004']
After Lemmatization:  ['It', 'now', '2004', ',']
After Lemmatization:  ['It', 'now', '2004', ',', 'I']
After Lemmatization:  ['It', 'now', '2004', ',', 'I', 'still']
After Lemmatization:  ['It', 'now', '2004', ',', 'I', 'still', 'making']
After Lemmatization:  ['It', 'now', '2004', ',', 'I', 'still', 'making', 'deal']
After Lemmatization:  ['It', 'now', '2004', ',', 'I', 'still', 'making', 'deal', 'around']
After Lemmatization:  ['It', 'now', '2004', ',', 'I', 'still', 'making', 'deal', 'around', 'clock']
After Lemmatization:  ['It', 'now', '2004', ',', 'I', 'still', 'making', 'deal', 'around', 'clock', ',']
After Lemmatization:  ['It', 'now', '2004', ',', 'I', 'still', 'making', 'deal', 'around', 'clock', ',', 'I']
After Lemmatization:  ['It', 'now', '2004', ',', 'I', 'still', 'making', 'deal', 'around', 'clock', ',', 'I', 'still']
After Lemmatization:  ['It', 'now', '2004', ',', 'I', 'still', 'making', 'deal', 'around', 'clock', ',', 'I', 'still', 'dont']

Words:  ['it', 'the', 'money', '.']
After Lemmatization:  ['it']
After Lemmatization:  ['it', 'the']
After Lemmatization:  ['it', 'the', 'money']
After Lemmatization:  ['it', 'the', 'money', '.']

Words:  ['I', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either', '.', 'Money', 'not']
After Lemmatization:  ['I']
After Lemmatization:  ['I', 'not']
After Lemmatization:  ['I', 'not', 'think']
After Lemmatization:  ['I', 'not', 'think', 'should']
After Lemmatization:  ['I', 'not', 'think', 'should', 'it']
After Lemmatization:  ['I', 'not', 'think', 'should', 'it', 'the']
After Lemmatization:  ['I', 'not', 'think', 'should', 'it', 'the', 'money']
After Lemmatization:  ['I', 'not', 'think', 'should', 'it', 'the', 'money', ',']
After Lemmatization:  ['I', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either']
After Lemmatization:  ['I', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either', '.']
After Lemmatization:  ['I', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either', '.', 'Money']
After Lemmatization:  ['I', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either', '.', 'Money', 'not']

Words:  ['end', 'itself', ',', 'it', 'sometimes', 'most', 'effective', 'way', 'help', 'us', 'realize']
After Lemmatization:  ['end']
After Lemmatization:  ['end', 'itself']
After Lemmatization:  ['end', 'itself', ',']
After Lemmatization:  ['end', 'itself', ',', 'it']
After Lemmatization:  ['end', 'itself', ',', 'it', 'sometimes']
After Lemmatization:  ['end', 'itself', ',', 'it', 'sometimes', 'most']
After Lemmatization:  ['end', 'itself', ',', 'it', 'sometimes', 'most', 'effective']
After Lemmatization:  ['end', 'itself', ',', 'it', 'sometimes', 'most', 'effective', 'way']
After Lemmatization:  ['end', 'itself', ',', 'it', 'sometimes', 'most', 'effective', 'way', 'help']
After Lemmatization:  ['end', 'itself', ',', 'it', 'sometimes', 'most', 'effective', 'way', 'help', 'u']
After Lemmatization:  ['end', 'itself', ',', 'it', 'sometimes', 'most', 'effective', 'way', 'help', 'u', 'realize']

Words:  ['dreams', '.', 'So', 'you', 'got', 'big', 'dreams', 'you’re', 'looking', 'a', 'way']
After Lemmatization:  ['dream']
After Lemmatization:  ['dream', '.']
After Lemmatization:  ['dream', '.', 'So']
After Lemmatization:  ['dream', '.', 'So', 'you']
After Lemmatization:  ['dream', '.', 'So', 'you', 'got']
After Lemmatization:  ['dream', '.', 'So', 'you', 'got', 'big']
After Lemmatization:  ['dream', '.', 'So', 'you', 'got', 'big', 'dream']
After Lemmatization:  ['dream', '.', 'So', 'you', 'got', 'big', 'dream', 'you’re']
After Lemmatization:  ['dream', '.', 'So', 'you', 'got', 'big', 'dream', 'you’re', 'looking']
After Lemmatization:  ['dream', '.', 'So', 'you', 'got', 'big', 'dream', 'you’re', 'looking', 'a']
After Lemmatization:  ['dream', '.', 'So', 'you', 'got', 'big', 'dream', 'you’re', 'looking', 'a', 'way']

Words:  ['make', 'happen', ',', 'book', 'for', '.']
After Lemmatization:  ['make']
After Lemmatization:  ['make', 'happen']
After Lemmatization:  ['make', 'happen', ',']
After Lemmatization:  ['make', 'happen', ',', 'book']
After Lemmatization:  ['make', 'happen', ',', 'book', 'for']
After Lemmatization:  ['make', 'happen', ',', 'book', 'for', '.']

3Words:  ['A', 'lot', 'happened', 'us', 'since', '1987', '.', 'Thats', 'year', 'The', 'Art', 'the', 'Deal']
After stemming:  ['a']
After stemming:  ['a', 'lot']
After stemming:  ['a', 'lot', 'happen']
After stemming:  ['a', 'lot', 'happen', 'us']
After stemming:  ['a', 'lot', 'happen', 'us', 'sinc']
After stemming:  ['a', 'lot', 'happen', 'us', 'sinc', '1987']
After stemming:  ['a', 'lot', 'happen', 'us', 'sinc', '1987', '.']
After stemming:  ['a', 'lot', 'happen', 'us', 'sinc', '1987', '.', 'that']
After stemming:  ['a', 'lot', 'happen', 'us', 'sinc', '1987', '.', 'that', 'year']
After stemming:  ['a', 'lot', 'happen', 'us', 'sinc', '1987', '.', 'that', 'year', 'the']
After stemming:  ['a', 'lot', 'happen', 'us', 'sinc', '1987', '.', 'that', 'year', 'the', 'art']
After stemming:  ['a', 'lot', 'happen', 'us', 'sinc', '1987', '.', 'that', 'year', 'the', 'art', 'the']
After stemming:  ['a', 'lot', 'happen', 'us', 'sinc', '1987', '.', 'that', 'year', 'the', 'art', 'the', 'deal']

3Words:  ['published', 'became', 'bestselling', 'business', 'book', 'the', 'decade', ',']
After stemming:  ['publish']
After stemming:  ['publish', 'becam']
After stemming:  ['publish', 'becam', 'bestsel']
After stemming:  ['publish', 'becam', 'bestsel', 'busi']
After stemming:  ['publish', 'becam', 'bestsel', 'busi', 'book']
After stemming:  ['publish', 'becam', 'bestsel', 'busi', 'book', 'the']
After stemming:  ['publish', 'becam', 'bestsel', 'busi', 'book', 'the', 'decad']
After stemming:  ['publish', 'becam', 'bestsel', 'busi', 'book', 'the', 'decad', ',']

3Words:  ['over', 'three', 'million', 'copies', 'print', '.']
After stemming:  ['over']
After stemming:  ['over', 'three']
After stemming:  ['over', 'three', 'million']
After stemming:  ['over', 'three', 'million', 'copi']
After stemming:  ['over', 'three', 'million', 'copi', 'print']
After stemming:  ['over', 'three', 'million', 'copi', 'print', '.']

3Words:  ['(', 'Business', 'Rule', '#', '1', ':', 'If', 'do', 'tell', 'people', 'your', 'success', ',']
After stemming:  ['(']
After stemming:  ['(', 'busi']
After stemming:  ['(', 'busi', 'rule']
After stemming:  ['(', 'busi', 'rule', '#']
After stemming:  ['(', 'busi', 'rule', '#', '1']
After stemming:  ['(', 'busi', 'rule', '#', '1', ':']
After stemming:  ['(', 'busi', 'rule', '#', '1', ':', 'if']
After stemming:  ['(', 'busi', 'rule', '#', '1', ':', 'if', 'do']
After stemming:  ['(', 'busi', 'rule', '#', '1', ':', 'if', 'do', 'tell']
After stemming:  ['(', 'busi', 'rule', '#', '1', ':', 'if', 'do', 'tell', 'peopl']
After stemming:  ['(', 'busi', 'rule', '#', '1', ':', 'if', 'do', 'tell', 'peopl', 'your']
After stemming:  ['(', 'busi', 'rule', '#', '1', ':', 'if', 'do', 'tell', 'peopl', 'your', 'success']
After stemming:  ['(', 'busi', 'rule', '#', '1', ':', 'if', 'do', 'tell', 'peopl', 'your', 'success', ',']

3Words:  ['probably', 'wont', 'know', 'it', '.', ')']
After stemming:  ['probabl']
After stemming:  ['probabl', 'wont']
After stemming:  ['probabl', 'wont', 'know']
After stemming:  ['probabl', 'wont', 'know', 'it']
After stemming:  ['probabl', 'wont', 'know', 'it', '.']
After stemming:  ['probabl', 'wont', 'know', 'it', '.', ')']

3Words:  ['A', 'months', 'ago', ',', 'I', 'picked', 'The', 'Art', 'the', 'Deal', ',', 'skimmed', 'bit', ',']
After stemming:  ['a']
After stemming:  ['a', 'month']
After stemming:  ['a', 'month', 'ago']
After stemming:  ['a', 'month', 'ago', ',']
After stemming:  ['a', 'month', 'ago', ',', 'i']
After stemming:  ['a', 'month', 'ago', ',', 'i', 'pick']
After stemming:  ['a', 'month', 'ago', ',', 'i', 'pick', 'the']
After stemming:  ['a', 'month', 'ago', ',', 'i', 'pick', 'the', 'art']
After stemming:  ['a', 'month', 'ago', ',', 'i', 'pick', 'the', 'art', 'the']
After stemming:  ['a', 'month', 'ago', ',', 'i', 'pick', 'the', 'art', 'the', 'deal']
After stemming:  ['a', 'month', 'ago', ',', 'i', 'pick', 'the', 'art', 'the', 'deal', ',']
After stemming:  ['a', 'month', 'ago', ',', 'i', 'pick', 'the', 'art', 'the', 'deal', ',', 'skim']
After stemming:  ['a', 'month', 'ago', ',', 'i', 'pick', 'the', 'art', 'the', 'deal', ',', 'skim', 'bit']
After stemming:  ['a', 'month', 'ago', ',', 'i', 'pick', 'the', 'art', 'the', 'deal', ',', 'skim', 'bit', ',']

3Words:  ['read', 'first', 'last', 'paragraphs', '.', 'I', 'realized', 'after', 'seventeen', 'years']
After stemming:  ['read']
After stemming:  ['read', 'first']
After stemming:  ['read', 'first', 'last']
After stemming:  ['read', 'first', 'last', 'paragraph']
After stemming:  ['read', 'first', 'last', 'paragraph', '.']
After stemming:  ['read', 'first', 'last', 'paragraph', '.', 'i']
After stemming:  ['read', 'first', 'last', 'paragraph', '.', 'i', 'realiz']
After stemming:  ['read', 'first', 'last', 'paragraph', '.', 'i', 'realiz', 'after']
After stemming:  ['read', 'first', 'last', 'paragraph', '.', 'i', 'realiz', 'after', 'seventeen']
After stemming:  ['read', 'first', 'last', 'paragraph', '.', 'i', 'realiz', 'after', 'seventeen', 'year']

3Words:  ['still', 'rang', 'true', '.', 'I', 'could', 'written', 'words', 'yesterday', ':']
After stemming:  ['still']
After stemming:  ['still', 'rang']
After stemming:  ['still', 'rang', 'true']
After stemming:  ['still', 'rang', 'true', '.']
After stemming:  ['still', 'rang', 'true', '.', 'i']
After stemming:  ['still', 'rang', 'true', '.', 'i', 'could']
After stemming:  ['still', 'rang', 'true', '.', 'i', 'could', 'written']
After stemming:  ['still', 'rang', 'true', '.', 'i', 'could', 'written', 'word']
After stemming:  ['still', 'rang', 'true', '.', 'i', 'could', 'written', 'word', 'yesterday']
After stemming:  ['still', 'rang', 'true', '.', 'i', 'could', 'written', 'word', 'yesterday', ':']

3Words:  ['First', 'paragraph', ':', 'I', 'not', 'it', 'the', 'money', '.', 'I', 'got', 'enough', ',', 'much']
After stemming:  ['first']
After stemming:  ['first', 'paragraph']
After stemming:  ['first', 'paragraph', ':']
After stemming:  ['first', 'paragraph', ':', 'i']
After stemming:  ['first', 'paragraph', ':', 'i', 'not']
After stemming:  ['first', 'paragraph', ':', 'i', 'not', 'it']
After stemming:  ['first', 'paragraph', ':', 'i', 'not', 'it', 'the']
After stemming:  ['first', 'paragraph', ':', 'i', 'not', 'it', 'the', 'money']
After stemming:  ['first', 'paragraph', ':', 'i', 'not', 'it', 'the', 'money', '.']
After stemming:  ['first', 'paragraph', ':', 'i', 'not', 'it', 'the', 'money', '.', 'i']
After stemming:  ['first', 'paragraph', ':', 'i', 'not', 'it', 'the', 'money', '.', 'i', 'got']
After stemming:  ['first', 'paragraph', ':', 'i', 'not', 'it', 'the', 'money', '.', 'i', 'got', 'enough']
After stemming:  ['first', 'paragraph', ':', 'i', 'not', 'it', 'the', 'money', '.', 'i', 'got', 'enough', ',']
After stemming:  ['first', 'paragraph', ':', 'i', 'not', 'it', 'the', 'money', '.', 'i', 'got', 'enough', ',', 'much']

3Words:  ['I', 'ever', 'need', '.', 'I', 'do', 'it', '.', 'Deals', 'my', 'art', 'form', '.', 'Other', 'people', 'paint']
After stemming:  ['i']
After stemming:  ['i', 'ever']
After stemming:  ['i', 'ever', 'need']
After stemming:  ['i', 'ever', 'need', '.']
After stemming:  ['i', 'ever', 'need', '.', 'i']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do', 'it']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do', 'it', '.']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do', 'it', '.', 'deal']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do', 'it', '.', 'deal', 'my']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do', 'it', '.', 'deal', 'my', 'art']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do', 'it', '.', 'deal', 'my', 'art', 'form']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do', 'it', '.', 'deal', 'my', 'art', 'form', '.']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do', 'it', '.', 'deal', 'my', 'art', 'form', '.', 'other']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do', 'it', '.', 'deal', 'my', 'art', 'form', '.', 'other', 'peopl']
After stemming:  ['i', 'ever', 'need', '.', 'i', 'do', 'it', '.', 'deal', 'my', 'art', 'form', '.', 'other', 'peopl', 'paint']

3Words:  ['beautifully', 'canvas', 'write', 'wonderful', 'poetry', '.', 'I', 'like', 'making', 'deals', ',', 'preferably']
After stemming:  ['beauti']
After stemming:  ['beauti', 'canva']
After stemming:  ['beauti', 'canva', 'write']
After stemming:  ['beauti', 'canva', 'write', 'wonder']
After stemming:  ['beauti', 'canva', 'write', 'wonder', 'poetri']
After stemming:  ['beauti', 'canva', 'write', 'wonder', 'poetri', '.']
After stemming:  ['beauti', 'canva', 'write', 'wonder', 'poetri', '.', 'i']
After stemming:  ['beauti', 'canva', 'write', 'wonder', 'poetri', '.', 'i', 'like']
After stemming:  ['beauti', 'canva', 'write', 'wonder', 'poetri', '.', 'i', 'like', 'make']
After stemming:  ['beauti', 'canva', 'write', 'wonder', 'poetri', '.', 'i', 'like', 'make', 'deal']
After stemming:  ['beauti', 'canva', 'write', 'wonder', 'poetri', '.', 'i', 'like', 'make', 'deal', ',']
After stemming:  ['beauti', 'canva', 'write', 'wonder', 'poetri', '.', 'i', 'like', 'make', 'deal', ',', 'prefer']

3Words:  ['big', 'deals', '.', 'That', 'how', 'I', 'get', 'kicks', '.']
After stemming:  ['big']
After stemming:  ['big', 'deal']
After stemming:  ['big', 'deal', '.']
After stemming:  ['big', 'deal', '.', 'that']
After stemming:  ['big', 'deal', '.', 'that', 'how']
After stemming:  ['big', 'deal', '.', 'that', 'how', 'i']
After stemming:  ['big', 'deal', '.', 'that', 'how', 'i', 'get']
After stemming:  ['big', 'deal', '.', 'that', 'how', 'i', 'get', 'kick']
After stemming:  ['big', 'deal', '.', 'that', 'how', 'i', 'get', 'kick', '.']

3Words:  ['Last', 'paragraph', ':', 'Do', 'get', 'wrong', '.', 'I', 'also', 'plan', 'keep', 'making', 'deals', ',', 'big']
After stemming:  ['last']
After stemming:  ['last', 'paragraph']
After stemming:  ['last', 'paragraph', ':']
After stemming:  ['last', 'paragraph', ':', 'do']
After stemming:  ['last', 'paragraph', ':', 'do', 'get']
After stemming:  ['last', 'paragraph', ':', 'do', 'get', 'wrong']
After stemming:  ['last', 'paragraph', ':', 'do', 'get', 'wrong', '.']
After stemming:  ['last', 'paragraph', ':', 'do', 'get', 'wrong', '.', 'i']
After stemming:  ['last', 'paragraph', ':', 'do', 'get', 'wrong', '.', 'i', 'also']
After stemming:  ['last', 'paragraph', ':', 'do', 'get', 'wrong', '.', 'i', 'also', 'plan']
After stemming:  ['last', 'paragraph', ':', 'do', 'get', 'wrong', '.', 'i', 'also', 'plan', 'keep']
After stemming:  ['last', 'paragraph', ':', 'do', 'get', 'wrong', '.', 'i', 'also', 'plan', 'keep', 'make']
After stemming:  ['last', 'paragraph', ':', 'do', 'get', 'wrong', '.', 'i', 'also', 'plan', 'keep', 'make', 'deal']
After stemming:  ['last', 'paragraph', ':', 'do', 'get', 'wrong', '.', 'i', 'also', 'plan', 'keep', 'make', 'deal', ',']
After stemming:  ['last', 'paragraph', ':', 'do', 'get', 'wrong', '.', 'i', 'also', 'plan', 'keep', 'make', 'deal', ',', 'big']

3Words:  ['deals', ',', 'right', 'around', 'clock', '.']
After stemming:  ['deal']
After stemming:  ['deal', ',']
After stemming:  ['deal', ',', 'right']
After stemming:  ['deal', ',', 'right', 'around']
After stemming:  ['deal', ',', 'right', 'around', 'clock']
After stemming:  ['deal', ',', 'right', 'around', 'clock', '.']

3Words:  ['It', 'now', '2004', ',', 'I', 'still', 'making', 'deals', 'around', 'clock', ',', 'I', 'still', 'dont']
After stemming:  ['it']
After stemming:  ['it', 'now']
After stemming:  ['it', 'now', '2004']
After stemming:  ['it', 'now', '2004', ',']
After stemming:  ['it', 'now', '2004', ',', 'i']
After stemming:  ['it', 'now', '2004', ',', 'i', 'still']
After stemming:  ['it', 'now', '2004', ',', 'i', 'still', 'make']
After stemming:  ['it', 'now', '2004', ',', 'i', 'still', 'make', 'deal']
After stemming:  ['it', 'now', '2004', ',', 'i', 'still', 'make', 'deal', 'around']
After stemming:  ['it', 'now', '2004', ',', 'i', 'still', 'make', 'deal', 'around', 'clock']
After stemming:  ['it', 'now', '2004', ',', 'i', 'still', 'make', 'deal', 'around', 'clock', ',']
After stemming:  ['it', 'now', '2004', ',', 'i', 'still', 'make', 'deal', 'around', 'clock', ',', 'i']
After stemming:  ['it', 'now', '2004', ',', 'i', 'still', 'make', 'deal', 'around', 'clock', ',', 'i', 'still']
After stemming:  ['it', 'now', '2004', ',', 'i', 'still', 'make', 'deal', 'around', 'clock', ',', 'i', 'still', 'dont']

3Words:  ['it', 'the', 'money', '.']
After stemming:  ['it']
After stemming:  ['it', 'the']
After stemming:  ['it', 'the', 'money']
After stemming:  ['it', 'the', 'money', '.']

3Words:  ['I', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either', '.', 'Money', 'not']
After stemming:  ['i']
After stemming:  ['i', 'not']
After stemming:  ['i', 'not', 'think']
After stemming:  ['i', 'not', 'think', 'should']
After stemming:  ['i', 'not', 'think', 'should', 'it']
After stemming:  ['i', 'not', 'think', 'should', 'it', 'the']
After stemming:  ['i', 'not', 'think', 'should', 'it', 'the', 'money']
After stemming:  ['i', 'not', 'think', 'should', 'it', 'the', 'money', ',']
After stemming:  ['i', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either']
After stemming:  ['i', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either', '.']
After stemming:  ['i', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either', '.', 'money']
After stemming:  ['i', 'not', 'think', 'should', 'it', 'the', 'money', ',', 'either', '.', 'money', 'not']

3Words:  ['end', 'itself', ',', 'it', 'sometimes', 'most', 'effective', 'way', 'help', 'us', 'realize']
After stemming:  ['end']
After stemming:  ['end', 'itself']
After stemming:  ['end', 'itself', ',']
After stemming:  ['end', 'itself', ',', 'it']
After stemming:  ['end', 'itself', ',', 'it', 'sometim']
After stemming:  ['end', 'itself', ',', 'it', 'sometim', 'most']
After stemming:  ['end', 'itself', ',', 'it', 'sometim', 'most', 'effect']
After stemming:  ['end', 'itself', ',', 'it', 'sometim', 'most', 'effect', 'way']
After stemming:  ['end', 'itself', ',', 'it', 'sometim', 'most', 'effect', 'way', 'help']
After stemming:  ['end', 'itself', ',', 'it', 'sometim', 'most', 'effect', 'way', 'help', 'us']
After stemming:  ['end', 'itself', ',', 'it', 'sometim', 'most', 'effect', 'way', 'help', 'us', 'realiz']

3Words:  ['dreams', '.', 'So', 'you', 'got', 'big', 'dreams', 'you’re', 'looking', 'a', 'way']
After stemming:  ['dream']
After stemming:  ['dream', '.']
After stemming:  ['dream', '.', 'so']
After stemming:  ['dream', '.', 'so', 'you']
After stemming:  ['dream', '.', 'so', 'you', 'got']
After stemming:  ['dream', '.', 'so', 'you', 'got', 'big']
After stemming:  ['dream', '.', 'so', 'you', 'got', 'big', 'dream']
After stemming:  ['dream', '.', 'so', 'you', 'got', 'big', 'dream', 'you’r']
After stemming:  ['dream', '.', 'so', 'you', 'got', 'big', 'dream', 'you’r', 'look']
After stemming:  ['dream', '.', 'so', 'you', 'got', 'big', 'dream', 'you’r', 'look', 'a']
After stemming:  ['dream', '.', 'so', 'you', 'got', 'big', 'dream', 'you’r', 'look', 'a', 'way']

3Words:  ['make', 'happen', ',', 'book', 'for', '.']
After stemming:  ['make']
After stemming:  ['make', 'happen']
After stemming:  ['make', 'happen', ',']
After stemming:  ['make', 'happen', ',', 'book']
After stemming:  ['make', 'happen', ',', 'book', 'for']
After stemming:  ['make', 'happen', ',', 'book', 'for', '.']
A lot has happened to us all since 1987. Thats the year The Art of the Deal
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
was published and became the bestselling business book of the decade,
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
with over three million copies in print.
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
(Business Rule #1: If you do not  tell people about your success, they
 {'neg': 0.0, 'neu': 0.764, 'pos': 0.236, 'compound': 0.5719}
probably wont know about it.)
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
A few months ago, I picked up The Art of the Deal, skimmed a bit, and
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
then read the first and last paragraphs. I realized that after seventeen years
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
they still rang true. I could have written these words yesterday:
 {'neg': 0.0, 'neu': 0.763, 'pos': 0.237, 'compound': 0.4215}
First paragraph: I do not do it for the money. I have got enough, much more
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
than I will ever need. I do it to do it. Deals are my art form. Other people paint
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
beautifully on canvas or write wonderful poetry. I like making deals, preferably
 {'neg': 0.0, 'neu': 0.447, 'pos': 0.553, 'compound': 0.872}
big deals. That is how I get my kicks.
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
Last paragraph: Do not get me wrong. I also plan to keep making deals, big
 {'neg': 0.0, 'neu': 0.836, 'pos': 0.164, 'compound': 0.3724}
deals, and right around the clock.
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
It is now 2004, I am still making deals around the clock, and I still dont
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
do it for the money.
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
I do not think you should do it for the money, either. Money is not an
 {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
end in itself, but it is sometimes the most effective way to help us realize
 {'neg': 0.0, 'neu': 0.615, 'pos': 0.385, 'compound': 0.8458}
our dreams. So if you have got big dreams and you’re looking for a way to
 {'neg': 0.0, 'neu': 0.707, 'pos': 0.293, 'compound': 0.6597}
make them happen, this book is for you.  {'neg': 0.0, 'neu': 1.0, 'pos': 0.0, 'compound': 0.0}
In [8]:
"""Hosni **part**"""

# Commented out IPython magic to ensure Python compatibility.
# %matplotlib inline
sns.set(color_codes=True )
air = pd.read_csv ('employee_attrition_test2.csv')
air.hist(figsize=(7,7))
sns.pairplot(air)
air=air.dropna()
In [9]:
#predict 1
df.corr()

x = df[['JobLevel']]
y = df['MonthlyIncome']
model = LinearRegression() 
clf = model.fit(x,y)
print( 'Co.fficitnt: ', clf.coef_)
predictions = model.predict(x)
for index in range(len(predictions)):
  print('Actual: ', y[index], '        ','Prtdicttd : ', predictions[index])
Co.fficitnt:  [3983.3271116]
Actual:  4450          Prtdicttd :  6155.489758488607
Actual:  1555          Prtdicttd :  2172.162646886972
Actual:  9724          Prtdicttd :  10138.81687009024
Actual:  2579          Prtdicttd :  2172.162646886972
Actual:  8865          Prtdicttd :  10138.81687009024
Actual:  3294          Prtdicttd :  2172.162646886972
Actual:  10231          Prtdicttd :  10138.81687009024
Actual:  5933          Prtdicttd :  6155.489758488607
Actual:  2213          Prtdicttd :  2172.162646886972
Actual:  3375          Prtdicttd :  2172.162646886972
Actual:  4968          Prtdicttd :  2172.162646886972
Actual:  6294          Prtdicttd :  6155.489758488607
Actual:  2743          Prtdicttd :  2172.162646886972
Actual:  17007          Prtdicttd :  14122.143981691876
Actual:  3479          Prtdicttd :  2172.162646886972
Actual:  5070          Prtdicttd :  6155.489758488607
Actual:  9204          Prtdicttd :  6155.489758488607
Actual:  5605          Prtdicttd :  6155.489758488607
Actual:  6392          Prtdicttd :  6155.489758488607
Actual:  2318          Prtdicttd :  2172.162646886972
Actual:  4037          Prtdicttd :  6155.489758488607
Actual:  3420          Prtdicttd :  2172.162646886972
Actual:  5957          Prtdicttd :  6155.489758488607
Actual:  5294          Prtdicttd :  6155.489758488607
Actual:  4244          Prtdicttd :  6155.489758488607
Actual:  7491          Prtdicttd :  10138.81687009024
Actual:  6134          Prtdicttd :  6155.489758488607
Actual:  13757          Prtdicttd :  10138.81687009024
Actual:  8686          Prtdicttd :  6155.489758488607
Actual:  5473          Prtdicttd :  6155.489758488607
Actual:  4087          Prtdicttd :  6155.489758488607
Actual:  5249          Prtdicttd :  6155.489758488607
Actual:  9094          Prtdicttd :  10138.81687009024
Actual:  5324          Prtdicttd :  6155.489758488607
Actual:  6796          Prtdicttd :  6155.489758488607
Actual:  1859          Prtdicttd :  2172.162646886972
Actual:  17861          Prtdicttd :  14122.143981691876
Actual:  19537          Prtdicttd :  18105.471093293512
Actual:  6125          Prtdicttd :  6155.489758488607
Actual:  2974          Prtdicttd :  2172.162646886972
Actual:  4998          Prtdicttd :  6155.489758488607
Actual:  2741          Prtdicttd :  6155.489758488607
Actual:  5968          Prtdicttd :  6155.489758488607
Actual:  6142          Prtdicttd :  6155.489758488607
Actual:  5042          Prtdicttd :  6155.489758488607
Actual:  9756          Prtdicttd :  10138.81687009024
Actual:  1416          Prtdicttd :  2172.162646886972
Actual:  7446          Prtdicttd :  10138.81687009024
Actual:  17639          Prtdicttd :  14122.143981691876
Actual:  4777          Prtdicttd :  6155.489758488607
Actual:  6214          Prtdicttd :  6155.489758488607
Actual:  4284          Prtdicttd :  6155.489758488607
Actual:  16437          Prtdicttd :  14122.143981691876
Actual:  5507          Prtdicttd :  6155.489758488607
Actual:  18947          Prtdicttd :  18105.471093293512
Actual:  9602          Prtdicttd :  6155.489758488607
Actual:  6623          Prtdicttd :  6155.489758488607
Actual:  4724          Prtdicttd :  6155.489758488607
Actual:  6500          Prtdicttd :  6155.489758488607
Actual:  10252          Prtdicttd :  10138.81687009024
Actual:  11916          Prtdicttd :  10138.81687009024
Actual:  18606          Prtdicttd :  18105.471093293512
Actual:  17875          Prtdicttd :  14122.143981691876
Actual:  7336          Prtdicttd :  10138.81687009024
Actual:  7082          Prtdicttd :  10138.81687009024
Actual:  5175          Prtdicttd :  6155.489758488607
Actual:  4011          Prtdicttd :  6155.489758488607
Actual:  5993          Prtdicttd :  6155.489758488607
Actual:  1232          Prtdicttd :  2172.162646886972
Actual:  13341          Prtdicttd :  14122.143981691876
Actual:  2476          Prtdicttd :  2172.162646886972
Actual:  7143          Prtdicttd :  10138.81687009024
Actual:  4449          Prtdicttd :  6155.489758488607
Actual:  4591          Prtdicttd :  6155.489758488607
Actual:  9071          Prtdicttd :  10138.81687009024
Actual:  19045          Prtdicttd :  18105.471093293512
Actual:  2534          Prtdicttd :  2172.162646886972
Actual:  10999          Prtdicttd :  10138.81687009024
Actual:  8740          Prtdicttd :  10138.81687009024
Actual:  5258          Prtdicttd :  6155.489758488607
Actual:  4648          Prtdicttd :  6155.489758488607
Actual:  13664          Prtdicttd :  10138.81687009024
Actual:  19202          Prtdicttd :  18105.471093293512
Actual:  6932          Prtdicttd :  6155.489758488607
Actual:  9957          Prtdicttd :  6155.489758488607
Actual:  1702          Prtdicttd :  2172.162646886972
Actual:  3452          Prtdicttd :  2172.162646886972
Actual:  5473          Prtdicttd :  6155.489758488607
Actual:  9980          Prtdicttd :  10138.81687009024
Actual:  15379          Prtdicttd :  14122.143981691876
Actual:  3838          Prtdicttd :  2172.162646886972
Actual:  2066          Prtdicttd :  2172.162646886972
Actual:  8500          Prtdicttd :  10138.81687009024
Actual:  2838          Prtdicttd :  2172.162646886972
Actual:  12965          Prtdicttd :  14122.143981691876
Actual:  5980          Prtdicttd :  6155.489758488607
Actual:  2564          Prtdicttd :  2172.162646886972
Actual:  12169          Prtdicttd :  14122.143981691876
Actual:  4553          Prtdicttd :  6155.489758488607
Actual:  6929          Prtdicttd :  6155.489758488607
Actual:  3812          Prtdicttd :  2172.162646886972
Actual:  1514          Prtdicttd :  2172.162646886972
Actual:  10266          Prtdicttd :  10138.81687009024
Actual:  4508          Prtdicttd :  6155.489758488607
Actual:  5429          Prtdicttd :  6155.489758488607
Actual:  9824          Prtdicttd :  10138.81687009024
Actual:  2696          Prtdicttd :  2172.162646886972
Actual:  13973          Prtdicttd :  14122.143981691876
Actual:  7406          Prtdicttd :  10138.81687009024
Actual:  8726          Prtdicttd :  10138.81687009024
Actual:  13966          Prtdicttd :  14122.143981691876
Actual:  4869          Prtdicttd :  6155.489758488607
Actual:  2625          Prtdicttd :  2172.162646886972
Actual:  2956          Prtdicttd :  2172.162646886972
Actual:  10096          Prtdicttd :  10138.81687009024
Actual:  4257          Prtdicttd :  2172.162646886972
Actual:  3730          Prtdicttd :  2172.162646886972
Actual:  6120          Prtdicttd :  6155.489758488607
Actual:  2523          Prtdicttd :  2172.162646886972
Actual:  19627          Prtdicttd :  18105.471093293512
Actual:  2370          Prtdicttd :  2172.162646886972
Actual:  4855          Prtdicttd :  6155.489758488607
Actual:  5337          Prtdicttd :  6155.489758488607
Actual:  5154          Prtdicttd :  6155.489758488607
Actual:  2587          Prtdicttd :  2172.162646886972
Actual:  6877          Prtdicttd :  6155.489758488607
Actual:  3902          Prtdicttd :  6155.489758488607
Actual:  17046          Prtdicttd :  14122.143981691876
Actual:  5974          Prtdicttd :  6155.489758488607
Actual:  16823          Prtdicttd :  14122.143981691876
Actual:  3597          Prtdicttd :  2172.162646886972
Actual:  5055          Prtdicttd :  6155.489758488607
Actual:  2308          Prtdicttd :  2172.162646886972
Actual:  5484          Prtdicttd :  6155.489758488607
Actual:  9439          Prtdicttd :  10138.81687009024
Actual:  10447          Prtdicttd :  10138.81687009024
Actual:  3760          Prtdicttd :  2172.162646886972
Actual:  13402          Prtdicttd :  14122.143981691876
Actual:  19232          Prtdicttd :  18105.471093293512
Actual:  8376          Prtdicttd :  10138.81687009024
Actual:  7945          Prtdicttd :  10138.81687009024
Actual:  10496          Prtdicttd :  10138.81687009024
Actual:  8926          Prtdicttd :  6155.489758488607
Actual:  6513          Prtdicttd :  6155.489758488607
Actual:  7637          Prtdicttd :  10138.81687009024
Actual:  7988          Prtdicttd :  10138.81687009024
Actual:  5410          Prtdicttd :  6155.489758488607
Actual:  2290          Prtdicttd :  2172.162646886972
Actual:  2559          Prtdicttd :  2172.162646886972
Actual:  18430          Prtdicttd :  18105.471093293512
Actual:  6553          Prtdicttd :  6155.489758488607
Actual:  3708          Prtdicttd :  2172.162646886972
Actual:  4538          Prtdicttd :  6155.489758488607
Actual:  19189          Prtdicttd :  18105.471093293512
Actual:  14814          Prtdicttd :  14122.143981691876
Actual:  2496          Prtdicttd :  2172.162646886972
Actual:  3673          Prtdicttd :  2172.162646886972
Actual:  19566          Prtdicttd :  18105.471093293512
Actual:  10124          Prtdicttd :  10138.81687009024
Actual:  2351          Prtdicttd :  2172.162646886972
Actual:  7351          Prtdicttd :  10138.81687009024
Actual:  2564          Prtdicttd :  2172.162646886972
Actual:  6653          Prtdicttd :  6155.489758488607
Actual:  6377          Prtdicttd :  6155.489758488607
Actual:  6410          Prtdicttd :  6155.489758488607
Actual:  10466          Prtdicttd :  10138.81687009024
Actual:  2042          Prtdicttd :  6155.489758488607
Actual:  2886          Prtdicttd :  2172.162646886972
Actual:  13603          Prtdicttd :  10138.81687009024
Actual:  5765          Prtdicttd :  6155.489758488607
Actual:  5321          Prtdicttd :  6155.489758488607
Actual:  2235          Prtdicttd :  2172.162646886972
Actual:  4779          Prtdicttd :  6155.489758488607
Actual:  3452          Prtdicttd :  2172.162646886972
Actual:  4233          Prtdicttd :  6155.489758488607
Actual:  18061          Prtdicttd :  18105.471093293512
Actual:  4272          Prtdicttd :  6155.489758488607
Actual:  6306          Prtdicttd :  6155.489758488607
Actual:  13726          Prtdicttd :  14122.143981691876
Actual:  2707          Prtdicttd :  2172.162646886972
Actual:  4490          Prtdicttd :  6155.489758488607
Actual:  19190          Prtdicttd :  18105.471093293512
Actual:  4440          Prtdicttd :  6155.489758488607
Actual:  2768          Prtdicttd :  2172.162646886972
Actual:  4876          Prtdicttd :  6155.489758488607
Actual:  5390          Prtdicttd :  6155.489758488607
Actual:  6782          Prtdicttd :  6155.489758488607
Actual:  19141          Prtdicttd :  18105.471093293512
Actual:  19068          Prtdicttd :  18105.471093293512
Actual:  5915          Prtdicttd :  6155.489758488607
Actual:  6516          Prtdicttd :  6155.489758488607
Actual:  5775          Prtdicttd :  6155.489758488607
Actual:  2201          Prtdicttd :  2172.162646886972
Actual:  2479          Prtdicttd :  2172.162646886972
Actual:  3617          Prtdicttd :  2172.162646886972
Actual:  17603          Prtdicttd :  14122.143981691876
Actual:  6334          Prtdicttd :  6155.489758488607
Actual:  3579          Prtdicttd :  2172.162646886972
Actual:  1274          Prtdicttd :  2172.162646886972
Actual:  7403          Prtdicttd :  10138.81687009024
Actual:  19517          Prtdicttd :  18105.471093293512
Actual:  8412          Prtdicttd :  10138.81687009024
Actual:  4978          Prtdicttd :  6155.489758488607
Actual:  19161          Prtdicttd :  18105.471093293512
Actual:  4876          Prtdicttd :  2172.162646886972
Actual:  6074          Prtdicttd :  6155.489758488607
Actual:  7140          Prtdicttd :  10138.81687009024
Actual:  3423          Prtdicttd :  2172.162646886972
Actual:  4765          Prtdicttd :  6155.489758488607
Actual:  6472          Prtdicttd :  6155.489758488607
Actual:  9241          Prtdicttd :  10138.81687009024
Actual:  4258          Prtdicttd :  2172.162646886972
Actual:  4736          Prtdicttd :  6155.489758488607
Actual:  2367          Prtdicttd :  2172.162646886972
Actual:  9715          Prtdicttd :  6155.489758488607
Actual:  13964          Prtdicttd :  14122.143981691876
Actual:  2332          Prtdicttd :  2172.162646886972
Actual:  4306          Prtdicttd :  6155.489758488607
Actual:  6274          Prtdicttd :  6155.489758488607
Actual:  5121          Prtdicttd :  6155.489758488607
Actual:  16880          Prtdicttd :  14122.143981691876
Actual:  4680          Prtdicttd :  2172.162646886972
Actual:  4537          Prtdicttd :  6155.489758488607
Actual:  2296          Prtdicttd :  2172.162646886972
Actual:  6931          Prtdicttd :  6155.489758488607
Actual:  5295          Prtdicttd :  6155.489758488607
Actual:  4197          Prtdicttd :  6155.489758488607
Actual:  3886          Prtdicttd :  6155.489758488607
Actual:  6687          Prtdicttd :  6155.489758488607
Actual:  2177          Prtdicttd :  2172.162646886972
Actual:  2322          Prtdicttd :  2172.162646886972
Actual:  6644          Prtdicttd :  6155.489758488607
Actual:  6201          Prtdicttd :  6155.489758488607
Actual:  4850          Prtdicttd :  6155.489758488607
Actual:  4401          Prtdicttd :  2172.162646886972
Actual:  6077          Prtdicttd :  6155.489758488607
Actual:  13194          Prtdicttd :  14122.143981691876
Actual:  2622          Prtdicttd :  2172.162646886972
Actual:  2774          Prtdicttd :  2172.162646886972
Actual:  2791          Prtdicttd :  2172.162646886972
Actual:  5006          Prtdicttd :  6155.489758488607
Actual:  19328          Prtdicttd :  18105.471093293512
Actual:  16291          Prtdicttd :  14122.143981691876
Actual:  7094          Prtdicttd :  10138.81687009024
Actual:  4285          Prtdicttd :  6155.489758488607
Actual:  6465          Prtdicttd :  6155.489758488607
Actual:  4960          Prtdicttd :  6155.489758488607
Actual:  10400          Prtdicttd :  10138.81687009024
Actual:  5033          Prtdicttd :  6155.489758488607
Actual:  11244          Prtdicttd :  10138.81687009024
Actual:  3294          Prtdicttd :  2172.162646886972
Actual:  2818          Prtdicttd :  2172.162646886972
Actual:  9547          Prtdicttd :  6155.489758488607
Actual:  6893          Prtdicttd :  6155.489758488607
Actual:  3629          Prtdicttd :  2172.162646886972
Actual:  5329          Prtdicttd :  6155.489758488607
Actual:  4319          Prtdicttd :  6155.489758488607
Actual:  2700          Prtdicttd :  2172.162646886972
Actual:  4617          Prtdicttd :  6155.489758488607
Actual:  3722          Prtdicttd :  2172.162646886972
Actual:  6439          Prtdicttd :  6155.489758488607
Actual:  2655          Prtdicttd :  2172.162646886972
Actual:  5343          Prtdicttd :  6155.489758488607
Actual:  2187          Prtdicttd :  2172.162646886972
Actual:  2288          Prtdicttd :  2172.162646886972
Actual:  10748          Prtdicttd :  10138.81687009024
Actual:  4260          Prtdicttd :  6155.489758488607
Actual:  3622          Prtdicttd :  2172.162646886972
Actual:  12936          Prtdicttd :  14122.143981691876
Actual:  6032          Prtdicttd :  6155.489758488607
Actual:  2783          Prtdicttd :  2172.162646886972
Actual:  6397          Prtdicttd :  6155.489758488607
Actual:  3936          Prtdicttd :  2172.162646886972
Actual:  3319          Prtdicttd :  6155.489758488607
Actual:  5467          Prtdicttd :  6155.489758488607
Actual:  2062          Prtdicttd :  2172.162646886972
Actual:  6815          Prtdicttd :  6155.489758488607
Actual:  4105          Prtdicttd :  6155.489758488607
Actual:  5396          Prtdicttd :  6155.489758488607
Actual:  11245          Prtdicttd :  14122.143981691876
Actual:  6578          Prtdicttd :  6155.489758488607
Actual:  2716          Prtdicttd :  2172.162646886972
Actual:  6804          Prtdicttd :  6155.489758488607
Actual:  2871          Prtdicttd :  2172.162646886972
Actual:  7879          Prtdicttd :  10138.81687009024
Actual:  2073          Prtdicttd :  2172.162646886972
Actual:  4523          Prtdicttd :  6155.489758488607
Actual:  5582          Prtdicttd :  6155.489758488607
Actual:  2741          Prtdicttd :  2172.162646886972
Actual:  2585          Prtdicttd :  2172.162646886972
Actual:  2543          Prtdicttd :  2172.162646886972
Actual:  3161          Prtdicttd :  2172.162646886972
Actual:  6323          Prtdicttd :  6155.489758488607
Actual:  2897          Prtdicttd :  6155.489758488607
Actual:  10312          Prtdicttd :  10138.81687009024
Actual:  2275          Prtdicttd :  2172.162646886972
Actual:  7625          Prtdicttd :  6155.489758488607
Actual:  7756          Prtdicttd :  10138.81687009024
Actual:  3058          Prtdicttd :  2172.162646886972
Actual:  2439          Prtdicttd :  2172.162646886972
Actual:  6474          Prtdicttd :  6155.489758488607
Actual:  5869          Prtdicttd :  6155.489758488607
Actual:  4663          Prtdicttd :  6155.489758488607
Actual:  4200          Prtdicttd :  2172.162646886972
Actual:  2141          Prtdicttd :  2172.162646886972
Actual:  9852          Prtdicttd :  10138.81687009024
Actual:  6799          Prtdicttd :  6155.489758488607
Actual:  5743          Prtdicttd :  6155.489758488607
Actual:  2380          Prtdicttd :  2172.162646886972
Actual:  6583          Prtdicttd :  6155.489758488607
Actual:  6261          Prtdicttd :  6155.489758488607
Actual:  4678          Prtdicttd :  2172.162646886972
Actual:  4127          Prtdicttd :  6155.489758488607
Actual:  17181          Prtdicttd :  14122.143981691876
Actual:  4554          Prtdicttd :  6155.489758488607
Actual:  3688          Prtdicttd :  2172.162646886972
Actual:  11691          Prtdicttd :  10138.81687009024
Actual:  9824          Prtdicttd :  6155.489758488607
Actual:  5485          Prtdicttd :  6155.489758488607
Actual:  10854          Prtdicttd :  10138.81687009024
Actual:  6567          Prtdicttd :  6155.489758488607
Actual:  4373          Prtdicttd :  6155.489758488607
Actual:  6349          Prtdicttd :  6155.489758488607
Actual:  5204          Prtdicttd :  6155.489758488607
In [10]:
#predict 2
a = df['Education'].values.reshape(324,1)
a.shape

x1 = df['Education']
y1 = df['DailyRate']
model = tree.DecisionTreeRegressor()
model.fit(a,y1)
predictions = model.predict(a)
print(model.feature_importances_)
for index in range(len(predictions)):
  print('Actual: ', y1[index], '        ','Prtdicttd : ', predictions[index])
[1.]
Actual:  1084.0          Prtdicttd :  816.3382352941177
Actual:  240.0          Prtdicttd :  729.2916666666666
Actual:  1339.0          Prtdicttd :  747.8759124087592
Actual:  204.0          Prtdicttd :  747.8759124087592
Actual:  1052.0          Prtdicttd :  747.8759124087592
Actual:  1454.0          Prtdicttd :  830.6279069767442
Actual:  531.0          Prtdicttd :  830.6279069767442
Actual:  625.0          Prtdicttd :  747.8759124087592
Actual:  1171.0          Prtdicttd :  830.6279069767442
Actual:  581.0          Prtdicttd :  816.3382352941177
Actual:  1312.0          Prtdicttd :  830.6279069767442
Actual:  461.0          Prtdicttd :  747.8759124087592
Actual:  885.0          Prtdicttd :  830.6279069767442
Actual:  829.0          Prtdicttd :  747.8759124087592
Actual:  307.0          Prtdicttd :  816.3382352941177
Actual:  983.0          Prtdicttd :  816.3382352941177
Actual:  601.0          Prtdicttd :  951.5555555555555
Actual:  322.0          Prtdicttd :  816.3382352941177
Actual:  1242.0          Prtdicttd :  830.6279069767442
Actual:  618.0          Prtdicttd :  747.8759124087592
Actual:  586.0          Prtdicttd :  747.8759124087592
Actual:  1467.0          Prtdicttd :  747.8759124087592
Actual:  470.0          Prtdicttd :  830.6279069767442
Actual:  305.0          Prtdicttd :  747.8759124087592
Actual:  791.0          Prtdicttd :  816.3382352941177
Actual:  799.0          Prtdicttd :  747.8759124087592
Actual:  1456.0          Prtdicttd :  951.5555555555555
Actual:  218.0          Prtdicttd :  729.2916666666666
Actual:  702.0          Prtdicttd :  830.6279069767442
Actual:  1342.0          Prtdicttd :  816.3382352941177
Actual:  1200.0          Prtdicttd :  830.6279069767442
Actual:  1327.0          Prtdicttd :  816.3382352941177
Actual:  299.0          Prtdicttd :  830.6279069767442
Actual:  118.0          Prtdicttd :  747.8759124087592
Actual:  562.0          Prtdicttd :  816.3382352941177
Actual:  504.0          Prtdicttd :  747.8759124087592
Actual:  1009.0          Prtdicttd :  747.8759124087592
Actual:  684.0          Prtdicttd :  747.8759124087592
Actual:  507.0          Prtdicttd :  816.3382352941177
Actual:  1082.0          Prtdicttd :  830.6279069767442
Actual:  1316.0          Prtdicttd :  816.3382352941177
Actual:  905.0          Prtdicttd :  816.3382352941177
Actual:  1303.0          Prtdicttd :  816.3382352941177
Actual:  970.0          Prtdicttd :  816.3382352941177
Actual:  711.0          Prtdicttd :  747.8759124087592
Actual:  176.0          Prtdicttd :  747.8759124087592
Actual:  1334.0          Prtdicttd :  747.8759124087592
Actual:  1445.0          Prtdicttd :  951.5555555555555
Actual:  691.0          Prtdicttd :  747.8759124087592
Actual:  1141.0          Prtdicttd :  816.3382352941177
Actual:  1130.0          Prtdicttd :  830.6279069767442
Actual:  783.0          Prtdicttd :  830.6279069767442
Actual:  898.0          Prtdicttd :  816.3382352941177
Actual:  335.0          Prtdicttd :  816.3382352941177
Actual:  705.0          Prtdicttd :  830.6279069767442
Actual:  558.0          Prtdicttd :  747.8759124087592
Actual:  1329.0          Prtdicttd :  747.8759124087592
Actual:  426.0          Prtdicttd :  830.6279069767442
Actual:  1111.0          Prtdicttd :  816.3382352941177
Actual:  363.0          Prtdicttd :  747.8759124087592
Actual:  634.0          Prtdicttd :  830.6279069767442
Actual:  1223.0          Prtdicttd :  816.3382352941177
Actual:  605.0          Prtdicttd :  747.8759124087592
Actual:  408.0          Prtdicttd :  729.2916666666666
Actual:  1206.0          Prtdicttd :  816.3382352941177
Actual:  638.0          Prtdicttd :  816.3382352941177
Actual:  721.0          Prtdicttd :  816.3382352941177
Actual:  1115.0          Prtdicttd :  830.6279069767442
Actual:  391.0          Prtdicttd :  816.3382352941177
Actual:  119.0          Prtdicttd :  830.6279069767442
Actual:  202.0          Prtdicttd :  729.2916666666666
Actual:  1232.0          Prtdicttd :  830.6279069767442
Actual:  1063.0          Prtdicttd :  951.5555555555555
Actual:  571.0          Prtdicttd :  747.8759124087592
Actual:  1125.0          Prtdicttd :  747.8759124087592
Actual:  452.0          Prtdicttd :  747.8759124087592
Actual:  1291.0          Prtdicttd :  747.8759124087592
Actual:  1355.0          Prtdicttd :  830.6279069767442
Actual:  770.0          Prtdicttd :  830.6279069767442
Actual:  1144.0          Prtdicttd :  830.6279069767442
Actual:  1318.0          Prtdicttd :  830.6279069767442
Actual:  397.0          Prtdicttd :  830.6279069767442
Actual:  252.0          Prtdicttd :  747.8759124087592
Actual:  1188.0          Prtdicttd :  816.3382352941177
Actual:  1176.0          Prtdicttd :  747.8759124087592
Actual:  1490.0          Prtdicttd :  816.3382352941177
Actual:  1316.0          Prtdicttd :  747.8759124087592
Actual:  1225.0          Prtdicttd :  729.2916666666666
Actual:  1389.0          Prtdicttd :  830.6279069767442
Actual:  809.0          Prtdicttd :  747.8759124087592
Actual:  1099.0          Prtdicttd :  830.6279069767442
Actual:  1255.0          Prtdicttd :  816.3382352941177
Actual:  943.0          Prtdicttd :  747.8759124087592
Actual:  968.0          Prtdicttd :  816.3382352941177
Actual:  661.0          Prtdicttd :  830.6279069767442
Actual:  240.0          Prtdicttd :  830.6279069767442
Actual:  489.0          Prtdicttd :  816.3382352941177
Actual:  203.0          Prtdicttd :  747.8759124087592
Actual:  408.0          Prtdicttd :  830.6279069767442
Actual:  218.0          Prtdicttd :  747.8759124087592
Actual:  574.0          Prtdicttd :  729.2916666666666
Actual:  1431.0          Prtdicttd :  747.8759124087592
Actual:  1499.0          Prtdicttd :  747.8759124087592
Actual:  827.0          Prtdicttd :  830.6279069767442
Actual:  285.0          Prtdicttd :  747.8759124087592
Actual:  534.0          Prtdicttd :  747.8759124087592
Actual:  544.0          Prtdicttd :  729.2916666666666
Actual:  939.0          Prtdicttd :  747.8759124087592
Actual:  319.0          Prtdicttd :  747.8759124087592
Actual:  994.0          Prtdicttd :  747.8759124087592
Actual:  465.0          Prtdicttd :  729.2916666666666
Actual:  928.0          Prtdicttd :  830.6279069767442
Actual:  251.0          Prtdicttd :  816.3382352941177
Actual:  827.0          Prtdicttd :  729.2916666666666
Actual:  377.0          Prtdicttd :  747.8759124087592
Actual:  713.0          Prtdicttd :  747.8759124087592
Actual:  515.0          Prtdicttd :  747.8759124087592
Actual:  1498.0          Prtdicttd :  830.6279069767442
Actual:  594.0          Prtdicttd :  729.2916666666666
Actual:  430.0          Prtdicttd :  830.6279069767442
Actual:  1062.0          Prtdicttd :  747.8759124087592
Actual:  903.0          Prtdicttd :  747.8759124087592
Actual:  258.0          Prtdicttd :  830.6279069767442
Actual:  589.0          Prtdicttd :  830.6279069767442
Actual:  464.0          Prtdicttd :  747.8759124087592
Actual:  946.0          Prtdicttd :  747.8759124087592
Actual:  835.0          Prtdicttd :  830.6279069767442
Actual:  1099.0          Prtdicttd :  830.6279069767442
Actual:  1319.0          Prtdicttd :  747.8759124087592
Actual:  1137.0          Prtdicttd :  830.6279069767442
Actual:  477.0          Prtdicttd :  747.8759124087592
Actual:  1018.0          Prtdicttd :  830.6279069767442
Actual:  1440.0          Prtdicttd :  816.3382352941177
Actual:  1351.0          Prtdicttd :  830.6279069767442
Actual:  334.0          Prtdicttd :  816.3382352941177
Actual:  796.0          Prtdicttd :  729.2916666666666
Actual:  567.0          Prtdicttd :  729.2916666666666
Actual:  1369.0          Prtdicttd :  747.8759124087592
Actual:  532.0          Prtdicttd :  816.3382352941177
Actual:  1089.0          Prtdicttd :  747.8759124087592
Actual:  448.0          Prtdicttd :  747.8759124087592
Actual:  1046.0          Prtdicttd :  747.8759124087592
Actual:  261.0          Prtdicttd :  816.3382352941177
Actual:  1194.0          Prtdicttd :  747.8759124087592
Actual:  1435.0          Prtdicttd :  747.8759124087592
Actual:  332.0          Prtdicttd :  747.8759124087592
Actual:  557.0          Prtdicttd :  830.6279069767442
Actual:  111.0          Prtdicttd :  747.8759124087592
Actual:  969.0          Prtdicttd :  816.3382352941177
Actual:  570.0          Prtdicttd :  747.8759124087592
Actual:  1261.0          Prtdicttd :  830.6279069767442
Actual:  381.0          Prtdicttd :  747.8759124087592
Actual:  131.0          Prtdicttd :  747.8759124087592
Actual:  314.0          Prtdicttd :  747.8759124087592
Actual:  970.0          Prtdicttd :  747.8759124087592
Actual:  924.0          Prtdicttd :  747.8759124087592
Actual:  748.0          Prtdicttd :  816.3382352941177
Actual:  422.0          Prtdicttd :  747.8759124087592
Actual:  288.0          Prtdicttd :  747.8759124087592
Actual:  296.0          Prtdicttd :  816.3382352941177
Actual:  130.0          Prtdicttd :  816.3382352941177
Actual:  1116.0          Prtdicttd :  747.8759124087592
Actual:  845.0          Prtdicttd :  951.5555555555555
Actual:  1202.0          Prtdicttd :  729.2916666666666
Actual:  106.0          Prtdicttd :  747.8759124087592
Actual:  1490.0          Prtdicttd :  830.6279069767442
Actual:  489.0          Prtdicttd :  747.8759124087592
Actual:  1287.0          Prtdicttd :  747.8759124087592
Actual:  728.0          Prtdicttd :  830.6279069767442
Actual:  115.0          Prtdicttd :  747.8759124087592
Actual:  508.0          Prtdicttd :  830.6279069767442
Actual:  1103.0          Prtdicttd :  747.8759124087592
Actual:  855.0          Prtdicttd :  830.6279069767442
Actual:  461.0          Prtdicttd :  729.2916666666666
Actual:  1365.0          Prtdicttd :  830.6279069767442
Actual:  364.0          Prtdicttd :  747.8759124087592
Actual:  188.0          Prtdicttd :  747.8759124087592
Actual:  667.0          Prtdicttd :  830.6279069767442
Actual:  715.0          Prtdicttd :  747.8759124087592
Actual:  465.0          Prtdicttd :  816.3382352941177
Actual:  648.0          Prtdicttd :  747.8759124087592
Actual:  1199.0          Prtdicttd :  816.3382352941177
Actual:  157.0          Prtdicttd :  747.8759124087592
Actual:  1303.0          Prtdicttd :  830.6279069767442
Actual:  1151.0          Prtdicttd :  951.5555555555555
Actual:  1023.0          Prtdicttd :  747.8759124087592
Actual:  439.0          Prtdicttd :  747.8759124087592
Actual:  427.0          Prtdicttd :  830.6279069767442
Actual:  771.0          Prtdicttd :  830.6279069767442
Actual:  655.0          Prtdicttd :  830.6279069767442
Actual:  369.0          Prtdicttd :  816.3382352941177
Actual:  1275.0          Prtdicttd :  816.3382352941177
Actual:  1283.0          Prtdicttd :  747.8759124087592
Actual:  289.0          Prtdicttd :  747.8759124087592
Actual:  1469.0          Prtdicttd :  830.6279069767442
Actual:  1291.0          Prtdicttd :  816.3382352941177
Actual:  342.0          Prtdicttd :  830.6279069767442
Actual:  1465.0          Prtdicttd :  747.8759124087592
Actual:  990.0          Prtdicttd :  747.8759124087592
Actual:  527.0          Prtdicttd :  816.3382352941177
Actual:  854.0          Prtdicttd :  830.6279069767442
Actual:  1398.0          Prtdicttd :  830.6279069767442
Actual:  543.0          Prtdicttd :  830.6279069767442
Actual:  1064.0          Prtdicttd :  729.2916666666666
Actual:  990.0          Prtdicttd :  747.8759124087592
Actual:  658.0          Prtdicttd :  747.8759124087592
Actual:  979.0          Prtdicttd :  816.3382352941177
Actual:  991.0          Prtdicttd :  816.3382352941177
Actual:  177.0          Prtdicttd :  747.8759124087592
Actual:  792.0          Prtdicttd :  747.8759124087592
Actual:  918.0          Prtdicttd :  747.8759124087592
Actual:  715.0          Prtdicttd :  830.6279069767442
Actual:  641.0          Prtdicttd :  816.3382352941177
Actual:  1108.0          Prtdicttd :  830.6279069767442
Actual:  441.0          Prtdicttd :  729.2916666666666
Actual:  1091.0          Prtdicttd :  816.3382352941177
Actual:  1184.0          Prtdicttd :  747.8759124087592
Actual:  480.0          Prtdicttd :  816.3382352941177
Actual:  304.0          Prtdicttd :  747.8759124087592
Actual:  167.0          Prtdicttd :  951.5555555555555
Actual:  1322.0          Prtdicttd :  747.8759124087592
Actual:  1225.0          Prtdicttd :  816.3382352941177
Actual:  249.0          Prtdicttd :  816.3382352941177
Actual:  350.0          Prtdicttd :  816.3382352941177
Actual:  1247.0          Prtdicttd :  816.3382352941177
Actual:  492.0          Prtdicttd :  747.8759124087592
Actual:  311.0          Prtdicttd :  747.8759124087592
Actual:  1213.0          Prtdicttd :  729.2916666666666
Actual:  404.0          Prtdicttd :  830.6279069767442
Actual:  788.0          Prtdicttd :  830.6279069767442
Actual:  541.0          Prtdicttd :  729.2916666666666
Actual:  1210.0          Prtdicttd :  747.8759124087592
Actual:  928.0          Prtdicttd :  816.3382352941177
Actual:  374.0          Prtdicttd :  747.8759124087592
Actual:  581.0          Prtdicttd :  747.8759124087592
Actual:  888.0          Prtdicttd :  830.6279069767442
Actual:  1479.0          Prtdicttd :  747.8759124087592
Actual:  147.0          Prtdicttd :  830.6279069767442
Actual:  1127.0          Prtdicttd :  729.2916666666666
Actual:  793.0          Prtdicttd :  747.8759124087592
Actual:  1268.0          Prtdicttd :  816.3382352941177
Actual:  734.0          Prtdicttd :  830.6279069767442
Actual:  350.0          Prtdicttd :  747.8759124087592
Actual:  325.0          Prtdicttd :  830.6279069767442
Actual:  674.0          Prtdicttd :  747.8759124087592
Actual:  1459.0          Prtdicttd :  830.6279069767442
Actual:  703.0          Prtdicttd :  830.6279069767442
Actual:  1045.0          Prtdicttd :  830.6279069767442
Actual:  170.0          Prtdicttd :  830.6279069767442
Actual:  495.0          Prtdicttd :  747.8759124087592
Actual:  401.0          Prtdicttd :  747.8759124087592
Actual:  986.0          Prtdicttd :  830.6279069767442
Actual:  1069.0          Prtdicttd :  729.2916666666666
Actual:  1009.0          Prtdicttd :  816.3382352941177
Actual:  1462.0          Prtdicttd :  747.8759124087592
Actual:  573.0          Prtdicttd :  747.8759124087592
Actual:  1496.0          Prtdicttd :  729.2916666666666
Actual:  1252.0          Prtdicttd :  816.3382352941177
Actual:  771.0          Prtdicttd :  816.3382352941177
Actual:  523.0          Prtdicttd :  747.8759124087592
Actual:  492.0          Prtdicttd :  830.6279069767442
Actual:  708.0          Prtdicttd :  816.3382352941177
Actual:  345.0          Prtdicttd :  816.3382352941177
Actual:  798.0          Prtdicttd :  830.6279069767442
Actual:  1380.0          Prtdicttd :  816.3382352941177
Actual:  1238.0          Prtdicttd :  729.2916666666666
Actual:  1371.0          Prtdicttd :  830.6279069767442
Actual:  254.0          Prtdicttd :  816.3382352941177
Actual:  1093.0          Prtdicttd :  747.8759124087592
Actual:  483.0          Prtdicttd :  747.8759124087592
Actual:  1141.0          Prtdicttd :  747.8759124087592
Actual:  719.0          Prtdicttd :  816.3382352941177
Actual:  1470.0          Prtdicttd :  747.8759124087592
Actual:  1300.0          Prtdicttd :  816.3382352941177
Actual:  1169.0          Prtdicttd :  830.6279069767442
Actual:  592.0          Prtdicttd :  747.8759124087592
Actual:  884.0          Prtdicttd :  830.6279069767442
Actual:  954.0          Prtdicttd :  747.8759124087592
Actual:  929.0          Prtdicttd :  747.8759124087592
Actual:  1234.0          Prtdicttd :  951.5555555555555
Actual:  852.0          Prtdicttd :  747.8759124087592
Actual:  156.0          Prtdicttd :  747.8759124087592
Actual:  775.0          Prtdicttd :  747.8759124087592
Actual:  534.0          Prtdicttd :  747.8759124087592
Actual:  921.0          Prtdicttd :  747.8759124087592
Actual:  807.0          Prtdicttd :  830.6279069767442
Actual:  1368.0          Prtdicttd :  830.6279069767442
Actual:  1463.0          Prtdicttd :  747.8759124087592
Actual:  917.0          Prtdicttd :  830.6279069767442
Actual:  1320.0          Prtdicttd :  747.8759124087592
Actual:  329.0          Prtdicttd :  747.8759124087592
Actual:  920.0          Prtdicttd :  747.8759124087592
Actual:  692.0          Prtdicttd :  747.8759124087592
Actual:  155.0          Prtdicttd :  816.3382352941177
Actual:  147.0          Prtdicttd :  830.6279069767442
Actual:  427.0          Prtdicttd :  747.8759124087592
Actual:  827.0          Prtdicttd :  830.6279069767442
Actual:  397.0          Prtdicttd :  816.3382352941177
Actual:  1157.0          Prtdicttd :  747.8759124087592
Actual:  529.0          Prtdicttd :  747.8759124087592
Actual:  977.0          Prtdicttd :  747.8759124087592
Actual:  469.0          Prtdicttd :  747.8759124087592
Actual:  559.0          Prtdicttd :  830.6279069767442
Actual:  1033.0          Prtdicttd :  747.8759124087592
Actual:  241.0          Prtdicttd :  747.8759124087592
Actual:  587.0          Prtdicttd :  830.6279069767442
Actual:  810.0          Prtdicttd :  816.3382352941177
Actual:  602.0          Prtdicttd :  951.5555555555555
Actual:  781.0          Prtdicttd :  729.2916666666666
Actual:  1079.0          Prtdicttd :  816.3382352941177
Actual:  1084.0          Prtdicttd :  747.8759124087592
Actual:  188.0          Prtdicttd :  830.6279069767442
Actual:  766.0          Prtdicttd :  747.8759124087592
Actual:  857.0          Prtdicttd :  747.8759124087592
Actual:  442.0          Prtdicttd :  816.3382352941177
Actual:  566.0          Prtdicttd :  830.6279069767442
Actual:  213.0          Prtdicttd :  747.8759124087592
Actual:  1495.0          Prtdicttd :  747.8759124087592
Actual:  376.0          Prtdicttd :  830.6279069767442
Actual:  410.0          Prtdicttd :  747.8759124087592
Actual:  470.0          Prtdicttd :  830.6279069767442
Actual:  430.0          Prtdicttd :  747.8759124087592
Actual:  210.0          Prtdicttd :  729.2916666666666
Actual:  1383.0          Prtdicttd :  747.8759124087592
In [ ]: